<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./lib/vue.min-2.6.11.js"></script>
    <style>
        .bgc {
            background-color: skyblue;
        }

        .thin {
            font-weight: 200;
        }

        .color {
            color: red;
        }
    </style>
</head>

<body>
    <div id="app">
        <h1 class="bgc thin">h1</h1>
        <h1 v-bind:class="objStyle1">v-bind h1</h1>
        <h1 :class=objStyle1>v-bind h1</h1>
    </div>
    <script>
        const vm = new Vue({
            el: '#app',
            data: {
                flage: false,
                objStyle1: {
                    bgc: true,
                    thin: false,
                    color: true
                }
            }
        })
    </script>

</body>

</html>